<?php
class cmspad_validator_double{
	
	public function validate($value){
		return preg_match('/^[-\+]?\d+(\.\d+)?$/', $value);
	}
	
	public static function getJavascript($value){
		return "return /^[-\\+]?\\d+(\\.\\d+)?$/.test($value);";
	}
}
?>
